using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CrmClient.product
{
    public partial class QueryProduct : Form
    {
        public QueryProduct()
        {
            InitializeComponent();
        }

        private void QueryProduct_Load(object sender, EventArgs e)
        {
            //com.ec.service.DateTime[] dt  = CrmClient.client.ClientProxy.service.getTimes();
            //this.dataGridView1.Columns.Add("year", "year");
            //this.dataGridView1.Columns.Add("month", "month");
            //this.dataGridView1.Columns.Add("day", "day");
            //this.dataGridView1.Columns.Add("hour", "hour");
            //this.dataGridView1.Columns.Add("minute", "minute");
            //this.dataGridView1.Columns.Add("second", "second");

            //for (int i = 0; i < dt.Length; i++)
            //{
            //    object[] obj = new object[6];
            //    obj[0] = dt[i].year;
            //    obj[1] = dt[i].month;
            //    obj[2] = dt[i].day;
            //    obj[3] = dt[i].hour;
            //    obj[4] = dt[i].minute;
            //    obj[5] = dt[i].second;
            //    this.dataGridView1.Rows.Add(obj);
            //}
            CrmClient.client.ClientProxy.Sql2Grid("select * from t_directory",this.dataGridView1);
        }
    }
}